.dept {
  :global {
    // 修复不能显示省略号的bug
    .ant-tree-node-content-wrapper {
      min-width: 0;
    }
  }
}

.node {
  display: flex;
  min-width: 0;
  align-items: center;

  &-name {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &-action {
    display: none;
    flex-shrink: 0;
  }

  &:hover {
    .node-action {
      display: inherit;
    }
  }
}
